/* PhD Kro Advanced Contact Form */

.phdkro-cf-header-with-logo {
    padding-top: 30px;
}

.phdkro-cf-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 18px;
    margin-bottom: 18px;
    max-width: 360px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255,255,255,0.75);
    position: relative;
    z-index: 1;
}

.phdkro-cf-logo {
    display: block;
    width: min(320px, 72vw);
    height: auto;
    max-height: 86px;
    object-fit: contain;
}

.phdkro-cf-header h2,
.phdkro-cf-header p {
    position: relative;
    z-index: 1;
}

.phdkro-cf-wrap {
    max-width: 980px;
    margin: 30px auto;
    padding: 15px;
    font-family: inherit;
}

.phdkro-cf-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(6, 43, 85, 0.14);
    border: 1px solid rgba(6, 43, 85, 0.10);
    overflow: hidden;
}

.phdkro-cf-header {
    background: linear-gradient(135deg, var(--phdkro-primary), #0b3d74);
    color: #ffffff;
    padding: 34px 34px 28px;
    position: relative;
}

.phdkro-cf-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(245,160,0,0.22), transparent 35%);
    pointer-events: none;
}

.phdkro-cf-badge {
    display: inline-block;
    background: var(--phdkro-accent);
    color: var(--phdkro-primary);
    padding: 7px 14px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .4px;
    margin-bottom: 14px;
}

.phdkro-cf-header h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    color: #ffffff;
    line-height: 1.1;
}

.phdkro-cf-header p {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    opacity: .92;
}

.phdkro-contact-form {
    padding: 32px 34px 36px;
}

.phdkro-cf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.phdkro-cf-field {
    margin-bottom: 18px;
}

.phdkro-cf-field label {
    display: block;
    font-weight: 700;
    color: var(--phdkro-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.phdkro-cf-field label span {
    color: #d93025;
}

.phdkro-cf-field input,
.phdkro-cf-field select,
.phdkro-cf-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(6, 43, 85, 0.22);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    background: #fff;
    color: #1b1b1b;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.phdkro-cf-field textarea {
    resize: vertical;
    min-height: 130px;
}

.phdkro-cf-field input:focus,
.phdkro-cf-field select:focus,
.phdkro-cf-field textarea:focus {
    border-color: var(--phdkro-accent);
    box-shadow: 0 0 0 4px rgba(245, 160, 0, 0.16);
}

.phdkro-cf-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 0 22px;
    color: #333;
    font-size: 14px;
}

.phdkro-cf-consent input {
    margin-top: 3px;
}

.phdkro-cf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--phdkro-accent), #ffb52f);
    color: var(--phdkro-primary);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(245, 160, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.phdkro-cf-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(245, 160, 0, .34);
}

.phdkro-cf-submit:disabled {
    opacity: .75;
    cursor: not-allowed;
}

.phdkro-cf-response {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    display: none;
    font-weight: 600;
}

.phdkro-cf-response.success {
    display: block;
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.phdkro-cf-response.error {
    display: block;
    background: #fff0f0;
    color: #b00020;
    border: 1px solid #ffc4c4;
}

.phdkro-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 720px) {
    .phdkro-cf-wrap {
        margin: 15px auto;
        padding: 10px;
    }

    .phdkro-cf-header,
    .phdkro-contact-form {
        padding: 24px 18px;
    }

    .phdkro-cf-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .phdkro-cf-submit {
        width: 100%;
    }

    .phdkro-cf-logo-box {
        max-width: 100%;
        padding: 10px 12px;
    }

    .phdkro-cf-logo {
        width: 100%;
        max-height: 72px;
    }
}
