/* Karoon Energy styling - aligned with karoonenergy.com.au/contact */

body {
    padding: 30px 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #5b6770;
    font-weight: normal;
    background: linear-gradient(138deg, rgba(0, 128, 198, 1) 0%, rgba(60, 79, 147, 1) 100%);
    overflow: hidden;
    overflow-y: auto;
}

a {
    display: inline-block;
    transition: color 0.2s ease;
    font-family: inherit;
    color: #0080c6;
}

a:hover {
    color: #5b6770;
}

strong {
    font-weight: 600;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 600;
    color: #5b6770;
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    border-top: 2px solid #0080c6;
    padding-top: 12px;
}

h2 {
    font-size: 18px;
    line-height: 24px;
    margin: 0 0 24px 0;
}

p {
    margin: 0 0 20px 0;
    padding: 0;
    color: #5b6770;
}

p:last-of-type {
    margin: 0;
}

.spacing {
    padding: 40px 0 10px;
}

.container {
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 24px;
}

#app {
    background: #ffffff;
    padding: 40px 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

header {
    padding: 0 0 24px;
    max-width: 1440px;
    margin: 0 auto 0 auto;
    border-bottom: 1px solid #e8e8e8;
}

header img {
    max-width: 220px;
    height: auto;
}

.top-content {
    padding: 48px 0 60px;
}

.top-content .container {
    max-width: 874px;
    margin: 0 auto;
}

.img-responsive {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

form {
    margin: 2rem 0 3rem;
}

form p {
    padding: 0;
    margin: 0 0 24px 0;
}

.grid-container {
    display: grid;
    grid-template-columns: 49% 49%;
    grid-gap: 16px;
}

.error-message, .message {
    color: #c53030;
    font-size: 15px;
    margin: -2rem 0 0;
    background: #fff5f5;
    padding: 12px 16px;
    border-left: 4px solid #c53030;
}

form ul {
    margin: 0 0 1.5rem;
}

form ul li {
    color: #c53030;
    font-size: 14px;
    margin-bottom: 0;
}

form label {
    width: 100%;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #5b6770;
}

form label.note {
    margin: 30px 0 0 0;
    line-height: 28px;
}

form label.info {
    font-size: 12px;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    font-weight: normal;
    color: #6D6C69;
}

form input {
    width: calc(100% - 40px);
    height: 48px;
    padding: 0 20px;
    background-color: #fff;
    border: 1px solid #d1d5db;
    outline: none;
    color: #5b6770;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus {
    border-color: #0080c6;
    box-shadow: 0 0 0 3px rgba(0, 128, 198, 0.15);
}

form select {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 20px;
    background: #fff url('images/down-arrow.svg') no-repeat;
    border: 1px solid #d1d5db;
    outline: none;
    background-position-x: 97%;
    background-position-y: 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #5b6770;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form select:focus {
    border-color: #0080c6;
    box-shadow: 0 0 0 3px rgba(0, 128, 198, 0.15);
}

form select::placeholder,
form input::placeholder {
    color: #6D6C69;
    opacity: 1;
}

form select::-ms-input-placeholder,
form input::-ms-input-placeholder {
    color: #6D6C69;
}

form input:hover,
form select:hover {
    border-color: #9ca3af;
}

.mobile-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mobile-prefix-readonly {
    flex: 0 0 auto;
    min-width: 2.75rem;
    padding: 0 12px;
    height: 48px;
    line-height: 48px;
    font-weight: 600;
    color: #5b6770;
    background: #f0f2f4;
    border: 1px solid #d1d5db;
}

#mobileNational {
    flex: 1 1 200px;
    min-width: 0;
    height: 48px;
    padding: 0 20px;
    background-color: #fff;
    border: 1px solid #d1d5db;
    outline: none;
    color: #5b6770;
    font-size: 16px;
}

#mobileNational:focus {
    border-color: #0080c6;
    box-shadow: 0 0 0 3px rgba(0, 128, 198, 0.15);
}

.mobile-formatted-preview {
    margin-top: 8px;
    font-size: 14px;
    color: #5b6770;
}

input.button,
.button {
    padding: 0 24px;
    max-width: 220px;
    min-width: 220px;
    height: 48px;
    text-align: center;
    text-transform: none;
    border: none;
    outline: none;
    background: #0080c6;
    color: #fff;
    margin: auto;
    margin-top: 40px;
    display: block;
    cursor: pointer;
    opacity: 1;
    letter-spacing: 0.3px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.button:hover,
.button:focus,
.button:active {
    background: #5b6770;
    opacity: 1;
}

.information-bar {
    margin: 0 auto 60px;
    text-align: center;
}

.information-bar p {
    font-size: 15px;
    line-height: 1.6;
    color: #0080c6;
}

.phone-div {
    display: flex;
    width: 100%;
    background: #fff;
}

.converter {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 60px;
}

#copycodeBlock {
    border: 1px solid #e8e8e8;
    background: #fff;
    padding: 24px;
}

.html-codes {
    display: none !important;
}

.html-viewer {
    background-color: #f8f9fa;
    padding: 20px;
    max-width: 540px;
    border: 1px solid #e8e8e8;
}

.html-viewer pre,
.html-viewer p {
    overflow: hidden;
    font-size: 10px;
    line-height: 1;
    color: #0080c6;
    max-height: 500px;
    margin: 0;
}

.html-viewer pre:hover {
    overflow-y: scroll;
    overflow-x: scroll;
}

.editor {
    resize: none;
    margin-right: 50px;
}

.button-alignment {
    display: flex;
    justify-content: center;
    margin: 32px 0 0 0;
}

.videoBlock {
    position: relative;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.playpause {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    outline: none;
    cursor: pointer;
}

.playpause img {
    width: 101px;
    height: 72px;
}

.specialIntructions {
    margin-top: 1.5rem;
}

.specialIntructions .indent {
    margin: 0.5rem 1.5rem 0;
}

.specialIntructions a {
    color: #0080c6;
    text-decoration: underline;
}

.specialIntructions a:hover {
    color: #5b6770;
    text-decoration: none;
}

/* modal with screenshot example */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 40px;
    overflow: auto;
}

.modal-body {
    position: relative;
    display: flex;
    height: 100%;
}

.modal.open {
    display: block;
}

.modal img {
    display: block;
    margin: auto;
}

.modal-close {
    color: #fff;
    font-size: 4rem;
    font-weight: 100;
    position: absolute;
    top: -1rem;
    right: -1rem;
}

body.modal-open {
    overflow: hidden;
}

/* Copy confirmation toast */
.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(16px);
    max-width: min(90vw, 420px);
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    background: #0080c6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-toast.copy-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 991px) {
    #app {
        padding: 24px 20px;
    }

    .top-content {
        padding: 32px 0 40px;
    }

    .container,
    .top-content .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }

    .converter {
        grid-template-columns: 100%;
        padding-bottom: 0;
    }

    .html-viewer {
        max-width: 100%;
    }

    .html-viewer pre {
        max-height: 100%;
    }

    form {
        margin-bottom: 40px;
    }

    form p {
        display: block;
    }

    form p span {
        width: 100%;
        margin-bottom: 15px;
        display: block;
    }

    form label.info {
        text-align: left;
    }

    .grid-container {
        grid-template-columns: 100%;
    }

    p br {
        display: none;
    }

    #copycodeBlock {
        overflow-x: auto;
    }

    .information-bar {
        margin-bottom: 40px;
        max-width: 100%;
    }
}
