/* Optimal Consultation Popup Frontend CSS */

.ocp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
}

.ocp-overlay.ocp-active {
    opacity: 1;
    visibility: visible;
}

.ocp-modal-container {
    position: relative;
    width: 100%;
    max-width: 880px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ocp-overlay.ocp-active .ocp-modal-container {
    transform: scale(1);
}

/* Close Button */
.ocp-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #333333;
    border: 1px solid #e2e8f0;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.ocp-close-btn:hover {
    background: #f1f5f9;
    color: #e11d48;
    transform: rotate(90deg);
}

/* 2-Column Grid (6-6) */
.ocp-modal-grid {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 480px;
}

.ocp-grid-col {
    flex: 1;
    width: 50%;
    box-sizing: border-box;
}

/* Left Column: Image */
.ocp-col-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
    position: relative;
}

.ocp-mobile-img {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Right Column: Form Container */
.ocp-col-form {
    padding: 35px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.ocp-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.25;
    text-align: center;
}

.ocp-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 1.4;
}

/* Built-in Form Styling */
.ocp-form-group {
    margin:0 !important;
}

.ocp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.ocp-input,
.ocp-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
	height:45px;
}

.ocp-input:focus,
.ocp-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ocp-radio-group .ocp-radio-options {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.ocp-radio-options label {
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    display: flex;
 
    gap: 6px;
	input{
		    margin: 0 !important;
	}
}

.ocp-submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.ocp-submit-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

.ocp-form-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13.5px;
    text-align: center;
}

.ocp-form-message.ocp-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.ocp-form-message.ocp-error {
    background-color: #ffe4e6;
    color: #be123c;
    border: 1px solid #fecdd3;
}

/* Contact Form 7 Global Styling inside Popup */
.ocp-form-body .wpcf7 form {
    margin: 0;
}

.ocp-form-body .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 12px;
}

.ocp-form-body input[type="text"],
.ocp-form-body input[type="tel"],
.ocp-form-body input[type="email"],
.ocp-form-body select,
.ocp-form-body textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ocp-form-body input[type="text"]:focus,
.ocp-form-body input[type="tel"]:focus,
.ocp-form-body input[type="email"]:focus,
.ocp-form-body select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ocp-form-body input[type="submit"],
.ocp-form-body button[type="submit"] {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
	margin:0;
}

.ocp-form-body input[type="submit"]:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.ocp-form-body .wpcf7-response-output {
    margin: 12px 0 0 0 !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ocp-modal-container {
        max-width: 480px;
        border-radius: 12px;
    }

    .ocp-modal-grid {
        flex-direction: column;
        min-height: auto;
    }

    .ocp-grid-col {
        width: 100%;
    }

    .ocp-col-image {
        min-height: 180px;
        max-height: 220px;
    }

    .ocp-col-form {
        padding: 24px 20px;
    }

    .ocp-title {
        font-size: 22px;
    }

    .ocp-close-btn {
        top: 8px;
        right: 8px;
        background: #ffffff;
    }
}
